package com.amap.search.mapper.db2022;

import com.amap.search.entity.db2022.AddressCode;
import com.amap.search.entity.db2022.PoiCode;
import com.amap.search.entity.db2022.WeatherRecord;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 中国行政区域字典表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2023-01-09
 */
public interface AddressCodeMapper {
    int insertBatch(@Param("records") List<AddressCode> records);

    AddressCode queryAddressByCode(@Param("adCode") String adCode);

    /**
     * 查询所有code > #{cityCode}的城市级行政区信息
     * @return
     */
    List<AddressCode> queryAllCity(@Param("cityCode") String cityCode);
}
